﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<MethodWorx.CMS.UI.Models.EditWorkflowModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%using(Html.BeginForm())
        {
        %>
    <div class="formItem">
        <label>Choose A Component</label>
        <div class="formBox" style="width:400px;height:300px;overflow:auto;">
            <%
            var cat = "";%>
            <%
            foreach (var component in this.Model.Components.OrderBy(c => c.Category.ToLower()))
            {
                if (cat.ToLower() != component.Category.ToLower())
                {
                    cat = component.Category;
%><div style="padding:1px"><strong><%=component.Category%></strong></div><%
                }
%>
                    <div style="padding:1px">
                    <div style="padding-left:15px;cursor:pointer;" title="<%=component.Description%>">
                        <input type="radio" name="component" value="<%=component.Id%>"/><%=component.Name%>
                    </div>
                    </div>
                  <%
            }%>
        </div>
    </div>
    <div class="formItem">
        <button name="submit" value="create">Create</button>
        <button name="submit" value="cancel">Cancel</button>
    </div>
    <%
        }%>
</asp:Content>
